let obj = {
    id: 1, name: "xiaowang"
}

//克隆一定要产生新对象,将obj的地址赋值给obj2
//称为赋值
let obj2 = obj
console.log("obj==obj2",obj2 == obj);

//将obj的值,一个一个赋值给空对象,返回
let newObj = Object.assign({},obj)
console.log(newObj);
console.log("newObj == obj",newObj == obj);